package com.njwb.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
//配置中心中配置的前缀 datasource
@ConfigurationProperties(prefix = "datasource")
@Data
public class DataSourceConfig {
    private String username;
    private String password;
}
